<?php
class studentModel extends RelationModel
{
	protected function _before_delete($options) {
		$this->deletedata($options);
	}
	protected function _after_insert($data, $options) {
		$this->deletedata($options);
    }
	protected function _after_update($data, $options) {
		$this->deletedata($options);
    }
	public function deletedata($options){
		F('teacher/student', NULL);
	 }
}